//
//  SARenderer.m
//  GameFrame
//
//  Created by Hiroshi Nomura on 2014/05/24.
//  Copyright (c) 2014年 Hiroshi Nomura. All rights reserved.
//

#import "SARenderer.h"

@interface SARenderer()
-(BOOL) _allocateRenderBuffer:(id<EAGLDrawable>)drawable;
-(BOOL) _compileShader:(GLuint*)shader
                  type:(GLenum)type
        sourceFilePath:(NSString*)path
               program:(GLuint) prgName
            versionNum:(GLuint) version
        versionStrSize:(const GLsizei)size;

-(BOOL) _linkProgram:(GLuint)program;
-(BOOL) _validateProgram:(GLuint)program;
-(void) _useShaderProgram:(GLuint)program;

-(void) _destroyFBO:(GLuint) fboName;
-(void) _destroyFBOAttachment:(GLenum)attachment;
@end

@implementation SARenderer

- (id) initWithContext:(EAGLContext*)context andDrawable:(id<EAGLDrawable>)drawable
{
    if ((self = [super init]))
    {
        m_context = context;
    }
    
    return self;
}

@end
